<html>

<head>
<?php include("../../MerchandiseBay/conn.php"); ?>
<?
$id=$_REQUEST['d'];

$sqlReservation="select * from reservation where id='$id' order by reservationdate desc";
$qryReservation=mysql_query($sqlReservation,$conn);

//$sqlUpdate="update reservation set accept='accept' where id='$id'";
//$qryUpdate=mysql_query($sqlUpdate,$conn);

$row=mysql_fetch_assoc($qryReservation);
?>
<meta http-equiv="Content-Language" content="en-us">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>reservation information</title>
</head>

<body bgcolor="#0099FF">
<div><div>
<div>
  <table width="486" border="0">
    <tr>
      <td width="12">&nbsp;</td>
      <td width="464" bgcolor="#800000"><div align="center"><font size="2" face="Verdana" color="#C0C0C0">&nbsp;<b>Reservation 
        Information </b></font></div></td>
    </tr>
  </table>
  <table border="0" width="66%" id="table1">
  <form name="form1" method="post" action="updateReservation.php">
    <tr> 
      <td></td>
		
     
    </tr>
	<tr> 
      <td width="231" align="right">&nbsp;</td>
      <td align="left"><font size="2" face="Verdana">&nbsp; 
        <input type=hidden name=id value="<?=id?>">
		<input type=hidden name=name value="<?=name?>">
        </font></td>
    </tr>
    <tr> 
      <td width="231" align="right"><b><font size="2" face="Verdana">Name : </font></b></td>
      <td align="left"><font size="2" face="Verdana">&nbsp; 
        <?=$row['name']?>
        </font></td>
    </tr>
    <tr> 
      <td width="231" align="right"><b><font size="2" face="Verdana">Tel No :</font></b></td>
      <td align="left"><font size="2" face="Verdana">&nbsp; 
        <?=$row['telno']?>
        </font></td>
    </tr>
    <tr> 
      <td width="231" align="right"><b><font size="2" face="Verdana">Email :</font></b></td>
      <td align="left"><font size="2" face="Verdana">&nbsp; 
        <?=$row['email']?>
        </font></td>
    </tr>
    <tr> 
      <td width="231" align="right"><b><font size="2" face="Verdana">Reservation 
        Date:</font></b></td>
      <td align="left"><font size="2" face="Verdana">&nbsp; 
        <?=$row['reservationdate']?>
        </font></td>
    </tr>
    <tr> 
      <td width="231" align="right"><b><font size="2" face="Verdana">Address :</font></b></td>
      <td align="left"><font size="2" face="Verdana">&nbsp; 
        <?=$row['address']?>
        </font></td>
    </tr>
    <tr>
      <td align="right"><b><font size="2" face="Verdana">Code Product :</font></b></td>
      <td align="left"><font size="2" face="Verdana"> &nbsp; 
        <?=$row['codeproduct']?>
        </font></td>
    </tr>
    <tr> 
      <td width="231" align="right"><b><font size="2" face="Verdana">Category 
        :</font></b></td>
      <td align="left"><font size="2" face="Verdana">&nbsp; 
        <?=$row['category']?>
        </font></td>
    </tr>
    <tr> 
      <td width="231" align="right"><b><font size="2" face="Verdana">Kind :</font></b></td>
      <td align="left"><font size="2" face="Verdana"> &nbsp; 
        <?=$row['kind']?>
        </font></td>
    </tr>
	<tr> 
      <td width="231" align="right"><b><font size="2" face="Verdana">Status:</font></b></td>
      <td align="left">
       
          <input type="text" name=accept size="20">
          
      </td>
    </tr>
	<tr> 
      <td width="231" align="right"><b><font size="2" face="Verdana"></font></b></td>
      <td align="left"><input name="button" type="submit" value="Updated">
        
        </font></td>
    </tr>
	</form>
  </table>
   
  <table width="379" border="0">
    <tr>
      <td width="90">&nbsp;</td>
      <td width="136"></td>
      <td width="139"><div align="center">
      </td>
    </tr>
  </table>
  <p>&nbsp;</p>
  <table width="414" border="0">
    <tr>
      <td width="90">&nbsp;</td>
      <td width="161"><a href="adminHome.php">
      </a>
        <div align="center"><a href="adminHome.php">
          <div align="right">Home</div>
        </a></div>
      <a href="adminHome.php"></a></td>
      <td width="149"><a href="listReservation.php">
      <div align="center">Reservation List </div>
      </a></td>
    </tr>
  </table>
  <p>&nbsp;</p>
</div>

</body>

</html>
